package com.ruoyi.device.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 使用记录对象 tmd_device_record
 * 
 * @author ruoyi
 * @date 2024-05-02
 */
public class TmdDeviceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id 编号 */
    private Long id;

    /** 仪器id 仪器id */
    @Excel(name = "仪器id 仪器id")
    private Long deviceId;

    /** 操作人id 操作人id */
    @Excel(name = "操作人id 操作人id")
    private Long operatePerson;

    /** 操作时间 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间 创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operateTime;

    /** 操作名称 0：入库，1：出库，2：新增，3：编辑，4：删除 */
    @Excel(name = "操作名称 0：入库，1：出库，2：新增，3：编辑，4：删除")
    private Long operateName;

    private Integer gooutFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setOperatePerson(Long operatePerson) 
    {
        this.operatePerson = operatePerson;
    }

    public Long getOperatePerson() 
    {
        return operatePerson;
    }
    public void setOperateTime(Date operateTime) 
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime() 
    {
        return operateTime;
    }
    public void setOperateName(Long operateName) 
    {
        this.operateName = operateName;
    }

    public Long getOperateName() 
    {
        return operateName;
    }

    public void setGooutFlag(Integer gooutFlag)
    {
        this.gooutFlag = gooutFlag;
    }

    public Integer getGooutFlag()
    {
        return gooutFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("operatePerson", getOperatePerson())
            .append("operateTime", getOperateTime())
            .append("operateName", getOperateName())
            .append("gooutFlag", getGooutFlag())
            .toString();
    }
}
